
#封装部门id#
from api.ihrm_manage_dep_api import IHRMMangeDepApi
from common.token_util import TokenUtil


class DepIDUtil:
    @classmethod
    def get_dep_id(cls):
        data = {"name": "小明", "code": "9999"}
        token=TokenUtil.get_token()
        resp=IHRMMangeDepApi.add_dep_api(token,data)
        print("resp",resp.json())
        dep_id=resp.json().get("data").get("id")
        return  dep_id
